#include "typedef.h"


//devices built into the system
#define DEV_KBD        0
#define DEV_SCREEN     1

#define MAX_DEVS      256

typedef struct dev {
  u32 descriptor;
  u8 name[24];
  void (*init)();
  int (*read)(char*,int);
  int (*write)(char*,int);
  void (*ctrl)(int,int,int);
} dev_t;


extern dev_t devtab[];

int read(int, char*, int);


